I would like to know if it is possible to block the opening of a new window from a certain element in Javascript
I tried that but it doesn't work:
var links= document.getElementsByTagName('a');
for (var i=0; i<links.length; i++){
links[i].setAttribute('target', '_top');
}